<div class="row">
    <div class="col s12" dw-loading="tableShopLoading">
        <table class="responsive-table centered bordered">
            <thead>
                <tr>
                    <th>店铺名称</th>
                    <th>主营类目</th>
                    <th>店铺类型</th>
                    <th>店铺等级</th>
                    <th>近30天销售额</th>
                    <th>近30天销售量</th>
                    <th>成交均价</th>
                    <th>店铺详情</th>
                    <th>店铺商品</th>
                    <th>监控{{popoverEnable}}</th>
                </tr>
            </thead>
            <tbody>
                <tr class="repeat-item" ng-repeat="shop in vm.table.shops track by $index">
                    <td ng-if="shop.userId">
                        <a href="http://store.taobao.com/shop/view_shop.htm?user_number_id={{shop.userId}}" target="_blank" ng-bind-html="shop.shopName | highlight:vm.filter.q"></a>
                    </td>
                    <td ng-if="shop.userId">{{shop.mainCategory}}</td>
                    <td ng-if="shop.userId">{{shop.shopType | shopType}}</td>
                    <td ng-if="shop.userId">
                        <img ng-src="http://trendata.oss-cn-hangzhou.aliyuncs.com/marketconditions/credit{{shop.shopLevelType}}.png" style="width: 18px;" ng-repeat="i in shop.shopLevels track by $index">
                    </td>
                    <td ng-if="shop.userId" class="hisData cp" uid="{{shop.userId}}" dim="historySellMoney" jq-popup popup-config="shop" popup-type="'shop'" popup-dim="'historySellMoney'"
                    uib-popover-template="'myPopoverTemplate.html'" popover-class="popover_line" popover-trigger="'outsideClick'" popover-append-to-body="true" popover-enable='{{vm.popoverEnable}}'>{{shop.sellMoney | bigNum}}</td>
                    <td ng-if="shop.userId" class="hisData cp" uid="{{shop.userId}}" dim="historySellAmount" jq-popup popup-config="shop" popup-type="'shop'" popup-dim="'historySellAmount'"
                    uib-popover-template="'myPopoverTemplate.html'" popover-class="popover_line" popover-trigger="'outsideClick'" popover-append-to-body="true" popover-enable='{{vm.popoverEnable}}'>{{shop.sellAmount | bigNum}}</td>
                    <td ng-if="shop.userId">{{shop.avgPrice}}</td>
                    <!-- 店铺详情监控 -->
                    <td ng-if="shop.userId" ng-click="vm.getShopBasic($event,$index)">
                        <i class="fa fa-pie-chart cp f16"></i>
                    </td>
                    <td ng-if="shop.userId">
                        <a ng-click="vm.getBrandShopProds(shop)" class="cp">商品</a>
                    </td>
                    <td ng-if="shop.userId" class="monitorTd" add-monitor add-monitor-config="shop" add-monitor-type="'shop'">
                        <i class="fa cp" ng-class="{'fa-toggle-on':shop.collectionStatus,'fa-toggle-off':!shop.collectionStatus}"></i>
                    </td>
                    <td ng-if="!shop.userId" colspan="10">
                        <div class="pb30">
                            <shop-stat-data-component shop-uid="shop.uid" ng-if="shop.uid"></shop-stat-data-component>
                        </div>
                    </td>
                </tr>
                <tr ng-show="vm.table.shops.length==0">
                    <td colspan="10">暂无数据</td>
                </tr>
            </tbody>
        </table>
        <div class="center-align pd10">
            <pager page-count="vm.pager.pageCount" current-page="vm.pager.currentPage" on-page-change="vm.pager.onPageChange()" show-goto="true"></pager>
        </div>
    </div>
</div>
